Dynamisches Umschalten des Universe per msg.universe#13
Merged
Conversation
mutec
force-pushed
the
feat/sacn-in-dynamic-universe
branch
3 times, most recently
from
July 11, 2026 12:27
a7cbe69 to
f1d8dea
Compare
Add an input to the sacn-in node so the observed universe can be changed at runtime. On an incoming msg.universe (integer 1-63999) the node stops listening on the current universe (removeUniverse) and starts listening on the new one (addUniverse), drops the stale cache and updates the node status. Invalid values warn and are ignored; an unchanged value is a no-op. Document the new input in docs.html and rebuild dist.
mutec
force-pushed
the
feat/sacn-in-dynamic-universe
branch
from
July 11, 2026 21:38
f1d8dea to
0084206
Compare
Introduce an output trigger that is independent of the merge mode: - changes: emit only when values change - always: emit on every received sACN packet, even without a change - interval: emit on change and, as a keepalive, re-emit the full universe when no change arrives within a configurable interval (default 1000 ms) Existing nodes without the field keep their previous behaviour (passthrough=always, htp/ltp=changes). Add clearOnUniverseChange: on a runtime msg.universe switch, optionally emit a full zeroed universe for the new universe until real data arrives. The full universe state is now always cached internally (needed for the keepalive and the blanking), the keepalive timer is cleared on close, and the interval field is shown only for the interval trigger. Rebuild dist.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Was & Warum
Der
sacn-in-Node beobachtete bisher ein fest konfiguriertes Universe und hatte keinen Eingang. Dieser PR erlaubt es, das beobachtete Universe zur Laufzeit per Nachricht zu wechseln — ohne Redeploy.Änderungen
init.ts:inputs: 0→inputs: 1(Node bekommt einen Eingang, rückwärtskompatibel).sacn-in.ts: neuerinput-Handler. Beimsg.universe(Integer1–63999):removeUniverse(alt)+addUniverse(neu)(von dersacn-Lib bereitgestellt, inkl. Multicast-Membership),Universe N).warn+ ignoriert; unverändertes Universe → No-op.docs.html: neuerInputs-Abschnitt fürmsg.universe.Verifikation
npm run build/tscfehlerfrei,eslintsauber, Prettier angewandt.